package com.filyar.htyd.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.filyar.htyd.entity.Schedule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.filyar.htyd.entity.po.PersonSchedulePo;
import com.filyar.htyd.entity.vo.PersonShiftCountVo;
import com.filyar.htyd.entity.vo.PersonStatisticsVo;
import com.filyar.htyd.entity.vo.ScheduleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author filyar
 * @since 2024-08-29
 */
public interface ScheduleMapper extends BaseMapper<Schedule> {
    PersonSchedulePo selectPersonForSpecialDay(@Param("gender") Integer gender, List<Integer> days);

    List<PersonShiftCountVo> selectPersonList(@Param("gender") Integer gender,@Param("dayTypes") List<Integer> dayTypes);

    Page<ScheduleVo> getPersonShiftHistoryList(@Param("personId") Integer personId, Page<ScheduleVo> page);

    List<PersonStatisticsVo> getPersonStatistics(@Param("personId") Integer personId);
}
